﻿using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DefCore.Tools
{
    public static class MapConversions
    {
        public static Vector2 MapToWorld(Point mapPoint)
        {
            return new Vector2(
                mapPoint.X * Globals.TileSize.X, 
                mapPoint.Y * Globals.TileSize.Y);
        }

        public static Point WorldToMap(Vector2 world)
        {
            return new Point((int)(world.X / Globals.TileSize.X), (int)(world.Y / Globals.TileSize.Y));
        }
    }
}
